$(function(){
	var dialog=gridDialog("select_map",{title:"选择地址",width:605,modal:false});
	$(".view_map").live("click",function(){
		var form=$(this).parents("form:first");
		//log(form);
		dialog.dialog("open");
		dialog.dialog({
			buttons:{
				"确定":function(){
					//获得经纬度
					
					$("#address",form).val("");
					$("#lat",form).val("1");
					$("#lng",form).val("1");
					dialog.dialog("close");
				},
				"关闭":function(){
					dialog.dialog("close");
				}
			}
		}).dialog("open");
	})
})